package com.xiaojimao.gr_user.ThreadLocal;

import com.xaiojimao.gr_common.dto.RequestInfo;

public class UserThread {

    private final static ThreadLocal<RequestInfo> USER_LOCAL = new ThreadLocal<>();
    public static void set(RequestInfo info){
        USER_LOCAL.set(info);
    }

    public static RequestInfo get(){
        return USER_LOCAL.get();
    }

    public static void remove(){
        USER_LOCAL.remove();
    }

}
